﻿<%@ Page Language="C#" AutoEventWireup="false" EnableViewState="false" CodeBehind="Article.aspx.cs" Inherits="CMS.Web.Manage.Aspx.Article" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
	<link type="text/css" rel="stylesheet" href="../style/content.css" />
	<script type="text/javascript" src="../script/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="../script/pinyin.js"></script>
    <script type="text/javascript" src="../script/datepicker/WdatePicker.js"></script>
    <script type="text/javascript" src="../script/xheditor/xheditor-1.1.13-zh-cn.min.js"></script>
    <script type="text/javascript">
        $(function() {
            $('#xhEditor1').xheditor({cleanPaste:0,upImgUrl:'../ashx/editorupload.ashx'});
        });
    </script>
</head>
<body>
    <form id="form1" runat="server" class="holder">
		<div class="title1">文章</div>
		<div class="left">
			<span class="label">标题</span>
			<input type="text" id="txt_title" class="ipt_text1 round" runat="server" onchange="fn_alias()" />
			<br /><br />
			<div class="editor">
				<textarea id="xhEditor1" name="xhEditor1"></textarea>
			</div>
			<span class="label">别名 <span class="comt">( 可选, 浏览器地址栏中的页面名称 )</span></span>
			<input type="text" id="txt_alias" class="ipt_text1 round" runat="server" />&nbsp;<a href="javascript:fn_alias()">从标题中截取</a>
			
			<span class="label">摘要 <span class="comt">( 可选 )</span></span>
			<textarea id="txt_summary" class="ipt_text1 round" rows="4" style="height:auto;" runat="server"></textarea>
			
			<span class="label">标签 <span class="comt">( 可选, 多个标签关键词以空格分隔 )</span></span>
			<input type="text" id="txt_tags" class="ipt_text1 round" runat="server" />
		</div>
		<div class="right">
			<span class="label">发布到</span>
			<select class="ipt_select2 round">
				<option>111</option>
				<option>222</option>
			</select>			
			<span class="label">作者</span>
			<input type="text" id="txt_author" class="ipt_text2 round" runat="server" />
			
			<span class="label">发布时间</span>
			<input type="text" id="txt_date" class="ipt_text2 round wdate" onclick="WdatePicker()" />
			
			<span class="label">发布选项</span>
			<div class="options round">
				<input type="checkbox" id="chk_elite" />
				<label for="chk_elite">精华文章</label>
				<br />
				<input type="checkbox" id="chk_ontop" />
				<label for="chk_ontop">置顶文章</label>
				<br />
				<input type="checkbox" id="chk_hot" />
				<label for="chk_hot">热点文章</label></div>
			</div>
		<div class="clear"></div>
		<br />
		<input type="submit" value="保存文章" class="btn_submit round" />&nbsp;&nbsp;或 <a href="#">取消</a>
    </form>
    
    <script type="text/javascript">
		function fn_alias() {
			var pinyin = getPinyin($("#txt_title").val());
			$("#txt_alias").val(pinyin);
		}		
    </script>
</body>
</html>